<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<include file="__VIEW__/Common/header.html"/>
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">aid</th>
			  <th>文章标题</th>
			  <th>发表时间</th>
			  <th>属性</th>
			  <th>分类</th>
			  <th width="210">操作</th>
			</tr>
			<foreach from="$data" key="$k" value="$v">
			<tr>
			  <td width="30">{$v.aid}</td>
			  <td>{$v.title}</td>
			  <td>{$v.sendtime|date:'Y-m-d H:i:s',@@}</td>
			  <td>{$v.attr}</td>
			  <td>{$v.cname}</td>
			  <td width="210">
			  	<a href="{|U:'editArticle',array('aid'=>$v['aid'])}" class="btn btn-primary">编辑</a>
				<a href="javascript:;" class="btn btn-danger" onclick="if(confirm('确定删除吗？')) location.href='{|U:'delToRecycle',array('aid'=>$v['aid'])}'">删除</a>
			  </td>
			</tr>
			</foreach>
		</table>
		<style type="text/css">
			.cms_page{
				text-align: center;
			}
			.cms_page strong{
				margin-left: 3px;
				padding: 6px 5px;
				border: 1px solid #1FBD9E;
			}
			.cms_page a{
				margin-left: 3px;
				padding: 6px 5px;
				border: 1px solid #ccc;
			}
			.cms_page span.close{
				float: none;
			}
		</style>
		<div class="cms_page">
			{$page}
		</div>
	</body>
</html>
